package com.view;

import java.util.List;
import com.controller.ControladorPartitura;
import com.model.Imagen;
import com.opensymphony.xwork2.ActionSupport;

public class DetallesAction extends ActionSupport{

	private static final long serialVersionUID = 1L;
	private String idPartitura;
	private String idInstrumento;
	private String idFamilia;
	private List<Imagen> idImagenes;
	private ControladorPartitura linkController;
	
	
	public DetallesAction(){
		setLinkController(new ControladorPartitura());
	}
	
	public String execute(){
		return SUCCESS;
	}
	
	public String Detalles(){
		System.out.println(getIdPartitura());
		try {
			idImagenes = linkController.listaIdImagenes(Integer.parseInt(idPartitura),Integer.parseInt(idInstrumento),Integer.parseInt(idFamilia));
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
	public String getIdPartitura() {
		return idPartitura;
	}

	public void setIdPartitura(String idPartitura) {
		this.idPartitura = idPartitura;
	}

	public ControladorPartitura getLinkController() {
		return linkController;
	}

	public void setLinkController(ControladorPartitura linkController) {
		this.linkController = linkController;
	}

	public List<Imagen> getIdImagenes() {
		return idImagenes;
	}

	public void setIdImagenes(List<Imagen> idImagenes) {
		this.idImagenes = idImagenes;
	}

	public String getIdInstrumento() {
		return idInstrumento;
	}

	public void setIdInstrumento(String idInstrumento) {
		this.idInstrumento = idInstrumento;
	}

	public String getIdFamilia() {
		return idFamilia;
	}

	public void setIdFamilia(String idFamilia) {
		this.idFamilia = idFamilia;
	}
}
